<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/views/include/nocachehead.jsp"%>
<title>${attraction.name}</title>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/validator/addFeatureForm.js"></script>
<body>
	<%@ include file="/views/include/statusbar.jsp"%>
	<br>
	<br>
	<div>
		<span>${attraction.name}</span>
		<span>位置：</span>
		<a href="${pageContext.request.contextPath}/attraction/list.html?siteType=COUNTRY&siteId=${attraction.siteId}">${attraction.country}</a>
		<em>&gt;</em>
		<a href="${pageContext.request.contextPath}/attraction/list.html?siteType=PROVINCE&siteId=${attraction.siteId}">${attraction.province}</a>
		<em>&gt;</em>
		<a href="${pageContext.request.contextPath}/attraction/list.html?siteType=CITY&siteId=${attraction.siteId}">${attraction.city}</a>
		<em>&gt;</em>
		<a>${attraction.detailAddress}</a>
		<c:if test="${isAdmin }">
			<a id="edit" href="${pageContext.request.contextPath}/attraction/edit/${attraction.id}.html">编辑</a>
		</c:if>
	</div>
	<div>
		<p>添加特色项目</p>
		
		<c:out value="${requestScope.errMsg}" escapeXml="false" />
		
		<form id="addFeatureForm" action="${pageContext.request.contextPath}/attraction/feature/add/${attraction.id}.html" method="POST">
			<p>
				<label><span>*</span>项目名称:</label>
				<input id="title" name="title" type="text" />
			</p>
			<p>
				<label><span>*</span>大约消费（元）:</label>
				<input id="consume" name="consume" type="text" />
			</p>
			<p>
				<label>具体描述：</label>
				<textarea id="detail" name="detail"></textarea>
			</p>
			<p>
				<input type="hidden" name="submitToken" value='<skyline:sessionAttribute key="SESSION_SUBMIT_TOKEN"/>' />
				<input type="submit" name="submit" value="提交"> 
				<input type="button" value="取消" onclick="window.location='${pageContext.request.contextPath}/attraction/feature/list/${attraction.id}.html'">
			</p>
		</form>
	</div>
	<%-- 
	<div>
		<div>
			<a href="${pageContext.request.contextPath}/attraction/view/${attraction.id}.html">
				<img alt="${attraction.name}" src="${pageContext.request.contextPath}/image/${attraction.portrait}" />
			</a>
		</div>
		<div>
			地主：
			<a title="${attraction.adminNickname }" href="${pageContext.request.contextPath}/wo/${attraction.adminId}.html">
				<img alt="${attraction.adminNickname }" src="${pageContext.request.contextPath}/image/${attraction.adminPortrait}" />
			</a>
		</div>
		<div>简介：<skyline:summary length="60" value="${attraction.introduction }"/></div>
		<div>
			<c:forEach var="feature" items="${featureList}" begin="0" end="6" step="1">
				<a title="${feature.title }" href="${pageContext.request.contextPath}/attraction/feature/${feature.id }.html">
					<img alt="${feature.title }" src="${pageContext.request.contextPath}/image/${feature.portrait }">
				</a>
			</c:forEach>
		</div>
	</div>
	--%>
</body>
</html>